﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
namespace Logika
{
    public class NarediSobo
    {
        public List<List<int>> tocke = new List<List<int>>();
        private const string _lokacija = "/sobe/soba1.xml";
        public List<int> tocki;

        public void beri(string lokacija = _lokacija)
        {
            XmlDocument xDoc = new XmlDocument();
            xDoc.Load(lokacija);
            foreach (XmlNode node in xDoc.SelectNodes("SobaXML/FillPoints/Point"))
            {
                tocki = new List<int>();
                tocki.Add(Convert.ToInt32(node.SelectSingleNode("X").InnerText));
                tocki.Add(Convert.ToInt32(node.SelectSingleNode("Y").InnerText));
                tocke.Add(tocki);
            }
        }
    }
}
